package object.wxtemplate;

import org.springframework.stereotype.Repository;

@Repository
public class GetPP2CMsg {
	
	/*
	 * 通知快递员取走问题包裹
	 */
	private String userMobileNum;
	private String courierMobileNum;
	private String parcelType;
	private String parcelNum;
	private long storeTime;
	private String devBranchShortAddr;
	private String deviceSeq;
	private String deviceName;
	private int boxNum;
	private String devBranchHotLine;
	private String handleUser;
	private String handleType;

	
	public GetPP2CMsg() {
		super();
		// TODO Auto-generated constructor stub
	}

	
	public GetPP2CMsg(String userMobileNum, String courierMobileNum,
			String parcelType, String parcelNum, long storeTime,
			String devBranchShortAddr, String deviceSeq, String deviceName,
			int boxNum, String devBranchHotLine, String handleUser,
			String handleType) {
		super();
		this.userMobileNum = userMobileNum;
		this.courierMobileNum = courierMobileNum;
		this.parcelType = parcelType;
		this.parcelNum = parcelNum;
		this.storeTime = storeTime;
		this.devBranchShortAddr = devBranchShortAddr;
		this.deviceSeq = deviceSeq;
		this.deviceName = deviceName;
		this.boxNum = boxNum;
		this.devBranchHotLine = devBranchHotLine;
		this.handleUser = handleUser;
		this.handleType = handleType;
	}


/*	public GetPP2CMsg(String userMobileNum, 
			String courierMobileNum, String parcelType, String parcelNum,
			long storeTime, String devBranchShortAddr, String deviceName,
			int boxNum, String devBranchHotLine, String handleUser,
			String handleType) {
		super();
		this.userMobileNum = userMobileNum;
		this.courierMobileNum = courierMobileNum;
		this.parcelType = parcelType;
		this.parcelNum = parcelNum;
		this.storeTime = storeTime;
		this.devBranchShortAddr = devBranchShortAddr;
		this.deviceName = deviceName;
		this.boxNum = boxNum;
		this.devBranchHotLine = devBranchHotLine;
		this.handleUser = handleUser;
		this.handleType = handleType;
	}*/
	public String getUserMobileNum() {
		return userMobileNum;
	}

	public void setUserMobileNum(String userMobileNum) {
		this.userMobileNum = userMobileNum;
	}

	public String getCourierMobileNum() {
		return courierMobileNum;
	}

	public void setCourierMobileNum(String courierMobileNum) {
		this.courierMobileNum = courierMobileNum;
	}

	public String getParcelType() {
		if("0".equals(parcelType)){
			parcelType="正常件";
		}else if("1".equals(parcelType)){
			parcelType="联系不上";
		}else if("2".equals(parcelType)){
			parcelType="退件";
		}else if("3".equals(parcelType)){
			parcelType="错分件";
		}else if("4".equals(parcelType)){
			parcelType="空包";
		}else if("5".equals(parcelType)){
			parcelType="其它";
		}else if("6".equals(parcelType)){
			parcelType="号码错误";
		}else if("7".equals(parcelType)){
			parcelType="号码空号";
		}else if("8".equals(parcelType)){
			parcelType="未接电话";
		}
		return parcelType;
	}

	public void setParcelType(String parcelType) {
		this.parcelType = parcelType;
	}

	public String getParcelNum() {
		return parcelNum;
	}

	public void setParcelNum(String parcelNum) {
		this.parcelNum = parcelNum;
	}

	public long getStoreTime() {
		return storeTime;
	}

	public void setStoreTime(long storeTime) {
		this.storeTime = storeTime;
	}

	public String getDevBranchShortAddr() {
		return devBranchShortAddr;
	}

	public void setDevBranchShortAddr(String devBranchShortAddr) {
		this.devBranchShortAddr = devBranchShortAddr;
	}
	public String getDeviceSeq() {
		return deviceSeq;
	}
	public void setDeviceSeq(String deviceSeq) {
		this.deviceSeq = deviceSeq;
	}
	public String getDeviceName() {
		return deviceName;
	}
	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}
	public int getBoxNum() {
		return boxNum;
	}

	public void setBoxNum(int boxNum) {
		this.boxNum = boxNum;
	}
	
	public String getDevBranchHotLine() {
		return devBranchHotLine;
	}

	public void setDevBranchHotLine(String devBranchHotLine) {
		this.devBranchHotLine = devBranchHotLine;
	}

	public String getHandleUser() {
		return handleUser;
	}

	public void setHandleUser(String handleUser) {
		this.handleUser = handleUser;
	}

	public String getHandleType() {
		return handleType;
	}

	public void setHandleType(String handleType) {
		this.handleType = handleType;
	}

	/*public String getParamStr(){
		return "userMobileNum=" + userMobileNum +
				"&courierMobileNum=" + courierMobileNum +
				"&parcelType=" + parcelType +
				"&parcelNum=" + parcelNum +
				"&storeTime=" + storeTime +
				"&devBranchShortAddr=" + devBranchShortAddr +
				"&deviceName=" + deviceName +
				"&boxNum=" + boxNum +
				"&devBranchHotLine=" + devBranchHotLine +
				"&handleUser=" + handleUser +
				"&handleType=" + handleType;
	}*/
	
	public String getParamStr(){
		return "userMobileNum=" + userMobileNum +
				"&courierMobileNum=" + courierMobileNum +
				"&parcelType=" + parcelType +
				"&parcelNum=" + parcelNum +
				"&storeTime=" + storeTime +
				"&devBranchShortAddr=" + devBranchShortAddr +
				"&deviceSeq=" + deviceSeq +
				"&deviceName=" + deviceName +
				"&boxNum=" + boxNum +
				"&devBranchHotLine=" + devBranchHotLine +
				"&handleUser=" + handleUser +
				"&handleType=" + handleType;
	}

}
